# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html


# useful for handling different item types with a single interface
from itemadapter import ItemAdapter

# 管道模块
class FmPipeline:
    def process_item(self, item, spider):
        """
        :param item: parse方法解析好的返回的数据
        :param spider: 定义的爬虫名称
        :return:
        """
        # 如果想要在管道模块中打印parse方法返回的数据需要在配置文件中激活管道
        print('这是管道模块中打印的数据:', item)
